package com.ysh.service.impl;

import com.ysh.domain.Login;
import com.ysh.mapper.LoginMapper;
import com.ysh.mapper.UserMapper;
import com.ysh.service.LoginService;
import com.ysh.utils.MapperUtils;

import java.util.List;

public class LoginServiceImpl implements LoginService {
    private LoginMapper loginMapper = (LoginMapper) MapperUtils.getMapper(LoginMapper.class);

    @Override
    public Login findByNameAndPwd(String username, String pwd) {
        return loginMapper.findByNameAndPwd(username,pwd);
    }
}
